package com.darren.euc.dao.impl;


import java.util.List;

import org.hibernate.Session;
import org.springframework.stereotype.Repository;

import com.darren.euc.dao.RoomTypeDao;
import com.darren.euc.entity.RoomType;


@Repository
public class RoomTypeDaoImpl extends BaseDaoImpl<RoomType, Integer> implements RoomTypeDao {
	
	@SuppressWarnings("unchecked")
	@Override
	public List<RoomType> getAll() {
		Session session = sessionFactory.getCurrentSession();	
		return session.createQuery("from RoomType where enable=true order by id asc").list();
	}


}